Skip to content

Require per-state scenario sheet ID for YAML generation - #486

Merged
alxsmith merged 3 commits into
mainfrom
482-review-rdp-run-sheet-and-naming-conventions
Jul 22, 2026
Merged

Require per-state scenario sheet ID for YAML generation#486
alxsmith merged 3 commits into
mainfrom
482-review-rdp-run-sheet-and-naming-conventions

Conversation

@alxsmith

@alxsmith alxsmith commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Pass SCENARIO_SHEET_ID from each state's state.env into create_scenario_yamls so MD can use its own Runs & Charts sheet while NY/RI keep the existing workbook; remove the hardcoded default sheet ID.
  • Add generated md/config/scenarios/scenarios_bge.yaml from the MD sheet (includes residual_allocation_* on subclass runs).
  • Tighten sheet → YAML generation: require utility on every data row (no forward-fill), pass tariff paths through unchanged (no _elec_heat_seasonal_epmc rewrite), and require run_includes_supply only (drop legacy add_supply_revenue_requirement alias).

Closes #482

Reviewer focus

  • Confirm MD sheet has utility filled on every run row (merged cells will now fail fast).
  • Confirm MD sheet paths use current tariff filenames (*_elec_heat_seasonal*, not *_epmc*).

Test plan

  • tests/test_create_scenario_yamls.py (23 tests)
  • just s md create-scenario-yamls opens the MD sheet and refreshes scenarios_bge.yaml
  • just s ny create-scenario-yamls / just s ri create-scenario-yamls still use the shared NY/RI sheet
  • Running the script with neither --sheet-id nor SCENARIO_SHEET_ID fails with a clear error

@alxsmith alxsmith linked an issue Jul 17, 2026 that may be closed by this pull request
MD uses a separate Runs & Charts spreadsheet from NY/RI; source
SCENARIO_SHEET_ID from state.env instead of a hardcoded default.

Co-authored-by: Cursor <cursoragent@cursor.com>
@alxsmith
alxsmith force-pushed the 482-review-rdp-run-sheet-and-naming-conventions branch from e323c4d to 8d3e979 Compare July 21, 2026 15:45
alxsmith and others added 2 commits July 21, 2026 20:18
Require utility on every data row, drop utility forward-fill and
deprecated tariff path rewrites, and read run_includes_supply only
(no add_supply_revenue_requirement alias).

Co-authored-by: Cursor <cursoragent@cursor.com>
@alxsmith
alxsmith requested a review from alexhyunminlee July 21, 2026 20:38
@alxsmith
alxsmith marked this pull request as ready for review July 21, 2026 20:39
@alxsmith
alxsmith merged commit dcbf467 into main Jul 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review RDP run sheet and naming conventions

1 participant